<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" display="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" display="IE=edge,chrome=1">
    <meta name="viewport" display="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" display="no-siteapp"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../../../ht-css/Project.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../../../lib/DD_belatedPNG_0.0.8a-min.js?rev=@@hash"></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <title>账号管理</title>
</head>
<body>
<article class="page-container">
    <form class="form form-horizontal" id="form-member" novalidate style="" enctype="multipart/form-data">
        <div style="margin-left: 10%;width:660px;">
            <table class="table_li mb-10 mt-10 ml-10">
                <tr>

                    <td style="width: 350px">
                        <div class="row clearfix">
                            <label class="form-label w-70 f-l" for="title" style="padding:0">*标题：</label>
                            <div class="formControls w-700 f-l">
                               <!-- <input type="text" style="width: 250px;" class="input-text radius"  value=""   required  onkeyup="checkMaxIut(this,0)" ><span  id="changeNum" style="float: right;margin-right: -48px;margin-top: -15px;"><br/>(0)/40字符</span>-->
                                <input oninput="checkMaxIut(this)" value="" class="input-text radius" id="title"  style="width: 200px" name="title" placeholder="请输入标题（标题限制为40个字符）" autocomplete="off">
                            </div>

                        </div>

                    </td>
                    <td style="width: 350px">
                        <div class="row clearfix">
                            <div class="formControls w-700 f-l">
                                <span id="textSpan">0</span>/<span id="commonText"></span>字符
                            </div>
                        </div>

                    </td>
                </tr>
                <tr>
                    <td style="width: 350px">
                        <div class="row clearfix">
                            <label class="form-label w-70 f-l" style="padding:0">*平台选择：</label>
                            <div class="formControls w-250 clearfix f-l">
                            <span class="select-box radius bg-fff f-l" style="padding:0">
                                <select class="select radius valid" name="brandclass" id="pingtai" size="1" onchange="categoryss()">
                                    <option value="20" selected>普通平台</option>
                                    <option value="10">签约平台</option>
                                </select>
                            </span>
                            </div>
                        </div>
                    </td>

                    <td style="width: 350px">
                        <div class="row clearfix">
                            <label class="form-label w-70 f-l" style="padding:0">*地域筛选：</label>
                            <div class="formControls w-250 clearfix f-l">
                            <span class="select-box radius bg-fff f-l" style="padding:0">
                                <select class="select" name="brandclass" id="pinjgthai" size="1"  onchange="categoryss()">

                            </select>
                            </span>
                            </div>
                        </div>

                    </td>
                </tr>
                <tr>
                    <td style="width: 350px">
                        <div class="row clearfix">
                            <label class="form-label w-70 f-l" style="padding:0">*品类：</label>
                            <div class="formControls w-250 clearfix f-l">

                                <select class="select " size="1" style="height: 30px;width:180px;" name="brandclass" id="geta"> </select>

                            </div>
                        </div>
                    </td>
                    <td style="width: 350px">

                        <div class="row clearfix">
                            <label class="form-label w-70 f-l" style="padding:0">*发布时间：</label>
                            <div class="formControls w-250 f-l" >
                                <span class="wstxt"></span>
                                <input type="text" class="input-text Wdate radius" style="width:130px" id="logmin" readonly placeholder="请选择时间"><span class="pd-5"></span><input type="text" class="input-text Wdate radius" style="width:130px;display: none" id="logmax" readonly placeholder="请选择时间" >
                            </div>
                        </div>

                    </td>

                </tr>


            </table>
            <table class="table table-border table-bg table-hover table-sort mt-10" id="datatable" style="width:97%">
                <thead>
                <tr class="text-c">
                    <th width="20">序号</th>
                    <th width="50">排序</th>
                    <th width="50">品牌名称（或id）</th>
                    <th width="70">图片（95*30）</th>
                    <th width="50">操作</th>
                </tr>

                <tbody class="shun" id="shunlist">
               <!--     <tr>
                        <td>1</td>
                        <td>
                            <input type="text" id="sorts" name="s1" class="input-text" value='' autocomplete="off"  oninput="checkInput()" maxlength="1" onafterpaste="this.value=this.value.replace(/[^\d]/g,'') ">
                        </td>
                        <td>
                            <input type="text" class="input-text" value="" name="brandne3" id="brandname" onkeyup ="pinpai()" autocomplete="off">
                            <ul class="relation radius guanlian" id="tuan" style="margin-top: 190px;z-index: 1">
                                <li>无数据</li>
                            </ul>
                        </td>
                        <td id="uu">
                            <img id="licencepicpath1" style="width: 95px;height: 30px;" src=''>
                        </td>
                        <td>
                            <input type="file" id="file1" name="image" onchange="changImg(event)" style="display: none"><a onclick="addBtn(this,1)" id="uploads" style="margin-left: 20px">上传</a>&nbsp;&nbsp;
                            <a id="deletes" onclick="deletes(1)">删除</a>
                        </td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>
                            <input type="text"  id="sorts2" name="s1" class="input-text" value='' autocomplete="off" onkeyup ="checkInput2()" maxlength="1" onafterpaste="this.value=this.value.replace(/[^\d]/g,'') ">
                        </td>
                        <td>
                            <input type="text" class="input-text" value="" name="brandne3" id="brandname2" onkeyup="pinpai2()" autocomplete="off">
                            <ul class="relation radius guanlian" id="tuan2" style="margin-top: 240px;z-index: 1">
                                <li>无数据</li>
                            </ul>
                        </td>
                        <td id="uu2">
                            <img id="licencepicpath2" style="width: 95px;height: 30px;" src=''>
                        </td>
                        <td>
                            <input type="file" id="file2" name="image" onchange="changImg2(event)" style="display: none"><a onclick="addBtn2(this,1)" id="uploads2" style="margin-left: 20px">上传</a>&nbsp;&nbsp;
                            <a id="deletes2" onclick="deletes(2)">删除</a>
                        </td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>
                            <input type="text" id="sorts3" name="s1" class="input-text" value='' autocomplete="off" onkeyup ="checkInput3()" maxlength="1" onafterpaste="this.value=this.value.replace(/[^\d]/g,'') ">
                        </td>
                        <td>
                            <input type="text" class="input-text" value="" name="brandne3" id="brandname3" onkeyup="pinpai3()" autocomplete="off">
                            <ul class="relation radius guanlian" id="tuan3" style="margin-top: 285px;z-index: 1">
                                <li>无数据</li>
                            </ul>
                        </td>
                        <td id="uu3">
                            <img id="licencepicpath3" style="width: 95px;height: 30px;" src=''>
                        </td>
                        <td>
                            <input type="file" id="file3" name="image" onchange="changImg3(event)" style="display: none"><a onclick="addBtn(this,1)" id="uploads3" style="margin-left: 20px">上传</a>&nbsp;&nbsp;
                            <a id="deletes3" onclick="deletes(3)">删除</a>
                        </td>
                    </tr>
                    <tr>
                        <td>4</td>
                        <td>
                            <input type="text" id="sorts4" name="s1" class="input-text" value='' autocomplete="off" onkeyup ="checkInput4()" maxlength="1" onafterpaste="this.value=this.value.replace(/[^\d]/g,'') ">
                        </td>
                        <td>
                            <input type="text" class="input-text" value="" name="brandne3" id="brandname4" onkeyup="pinpai4()" autocomplete="off">
                            <ul class="relation radius guanlian" id="tuan4" style="margin-top: 330px;z-index: 1">
                                <li>无数据</li>
                            </ul>
                        </td>
                        <td id="uu4">
                            <img id="licencepicpath4" style="width: 95px;height: 30px;" src=''>
                        </td>
                        <td>
                            <input type="file" id="file4" name="image" onchange="changImg4(event)" style="display: none"><a onclick="addBtn(this,1)" id="uploads4" style="margin-left: 20px">上传</a>&nbsp;&nbsp;
                            <a id="deletes4" onclick="deletes(4)">删除</a>
                        </td>
                    </tr>
                    <tr>
                        <td>5</td>
                        <td>
                            <input type="text" id="sorts5" name="s1" class="input-text" value='' autocomplete="off" onkeyup ="checkInput5()" maxlength="1" onafterpaste="this.value=this.value.replace(/[^\d]/g,'') ">
                        </td>
                        <td>
                            <input type="text" class="input-text" value="" name="brandne3" id="brandname5" onkeyup="pinpai5()" autocomplete="off">
                            <ul class="relation radius guanlian" id="tuan5" style="margin-top: 375px;z-index: 1">
                                <li>无数据</li>
                            </ul>
                        </td>
                        <td id="uu5">
                            <img id="licencepicpath5" style="width: 95px;height: 30px;" src=''>
                        </td>
                        <td>
                            <input type="file" id="file5" name="image" onchange="changImg5(event)" style="display: none"><a onclick="addBtn(this,1)" id="uploads5" style="margin-left: 20px">上传</a>&nbsp;&nbsp;
                            <a id="deletes5">删除</a>
                        </td>
                    </tr>
                    <tr>
                        <td>6</td>
                        <td>
                            <input type="text" id="sorts6" name="s1" class="input-text" value='' autocomplete="off" onkeyup ="checkInput6()" maxlength="1" onafterpaste="this.value=this.value.replace(/[^\d]/g,'') ">
                        </td>
                        <td>
                            <input type="text" class="input-text" value="" name="brandne3" id="brandname6" onkeyup="pinpai6()" autocomplete="off">
                            <ul class="relation radius guanlian" id="tuan6" style="margin-top: 425px;z-index: 1">
                                <li>无数据</li>
                            </ul>
                        </td>
                        <td id="uu6">
                            <img id="licencepicpath6" style="width: 95px;height: 30px;" src=''>
                        </td>
                        <td>
                            <input type="file" id="file6" name="image" onchange="changImg6(event)" style="display: none"><a onclick="addBtn(this,1)" id="uploads6" style="margin-left: 20px">上传</a>&nbsp;&nbsp;
                            <a id="deletes6">删除</a>
                        </td>
                    </tr>
                    <tr>
                        <td>7</td>
                        <td>
                            <input type="text" id="sorts7" name="s1" class="input-text" value='' autocomplete="off" onkeyup ="checkInput7()" maxlength="1" onafterpaste="this.value=this.value.replace(/[^\d]/g,'') ">
                        </td>
                        <td>
                            <input type="text" class="input-text" value="" name="brandne3" id="brandname7" onkeyup="pinpai7()" autocomplete="off">
                            <ul class="relation radius guanlian" id="tuan7" style="margin-top: 470px;z-index: 1">
                                <li>无数据</li>
                            </ul>
                        </td>
                        <td id="uu7">
                            <img id="licencepicpath7" style="width: 95px;height: 30px;" src=''>
                        </td>
                        <td>
                            <input type="file" id="file7" name="image" onchange="changImg7(event)" style="display: none"><a onclick="addBtn(this,1)" id="uploads7" style="margin-left: 20px">上传</a>&nbsp;&nbsp;
                            <a id="deletes7">删除</a>
                        </td>
                    </tr>
                    <tr>
                        <td>8</td>
                        <td>
                            <input type="text" id="sorts8" name="s1" class="input-text" value='' autocomplete="off" onkeyup ="checkInput8()" maxlength="1" onafterpaste="this.value=this.value.replace(/[^\d]/g,'') ">
                        </td>
                        <td>
                            <input type="text" class="input-text" value="" name="brandne3" id="brandname8" onkeyup="pinpai8()" autocomplete="off">
                            <ul class="relation radius guanlian" id="tuan8" style="margin-top: 515px;z-index: 1">
                                <li>无数据</li>
                            </ul>
                        </td>
                        <td id="uu8">
                            <img id="licencepicpath8" style="width: 95px;height: 30px;" src=''>
                        </td>
                        <td>
                            <input type="file" id="file8" name="image" onchange="changImg8(event)" style="display: none"><a onclick="addBtn(this,1)" id="uploads8" style="margin-left: 20px">上传</a>&nbsp;&nbsp;
                            <a id="deletes8">删除</a>
                        </td>
                    </tr>-->
                </tbody>
            </table>
            <div class="mt-40"></div>
            <div class="row cl">
                <div class="text-c">
                    <a class="btn btn-primary radius" onclick="categoryadd()">保存</a><button onclick="cancelBtn();" class="btn radius ml-10" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button><!--onclick="removeIframe();"-->
                </div>
            </div>
        </div>

    </form>
</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script> <!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<script src="../../../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../../../ht-js/verifyToken.js?rev=@@hash"></script>
<script src="../../../../ht-js/Project.js?rev=@@hash"></script>
<script src="../../../../ht-js/operation-js/operation_resource/categorylogo-js/categorylogo_add.js?rev=@@hash"></script>
<link type="text/css" rel="stylesheet" href="../../../../ht-js/operation-js/time-js/jedate.css">
<script type="text/javascript" src="../../../../ht-js/operation-js/time-js/jquery.jedate.js?rev=@@hash"></script>
<script src="../../../../ht-js/dynamicWarehouse.js?rev=@@hash"></script>


<script>



   /* function checkInput2() {
        var text = $("#sorts2").val()
        if(isNaN(text)){
            $.Huimodalalert('请输入数字！',2000);
            $("#sorts2").val("")
        }
        if(text>=9){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts2").val("")

        }
        if(text==0){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts2").val("")

        }
    } function checkInput3() {
        var text = $("#sorts3").val()
        if(isNaN(text)){
            $.Huimodalalert('请输入数字！',2000);
            $("#sorts3").val("")
        }
        if(text>=9){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts3").val("")

        }
        if(text==0){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts3").val("")

        }
    }
    function checkInput4() {
        var text = $("#sorts4").val()
        if(isNaN(text)){
            $.Huimodalalert('请输入数字！',2000);
            $("#sorts4").val("")
        }
        if(text>=9){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts4").val("")

        }
        if(text==0){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts4").val("")

        }
    } function checkInput5() {
        var text = $("#sorts5").val()
        if(isNaN(text)){
            $.Huimodalalert('请输入数字！',2000);
            $("#sorts5").val("")
        }
        if(text>=9){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts5").val("")

        }
        if(text==0){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts5").val("")

        }
    }

    function checkInput6() {
        var text = $("#sorts6").val()
        if(isNaN(text)){
            $.Huimodalalert('请输入数字！',2000);
            $("#sorts6").val("")
        }
        if(text>=9){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts6").val("")

        }
        if(text==0){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts6").val("")

        }
    } function checkInput7() {
        var text = $("#sorts7").val()
        if(isNaN(text)){
            $.Huimodalalert('请输入数字！',2000);
            $("#sorts7").val("")
        }
        if(text>=9){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts7").val("")

        }
        if(text==0){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts7").val("")

        }
    } function checkInput8() {
        var text = $("#sorts8").val()
        if(isNaN(text)){
            $.Huimodalalert('请输入数字！',2000);
            $("#sorts8").val("")
        }
        if(text>=9){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts").val("")

        }
        if(text==0){
            $.Huimodalalert('请输入1-8数字！',2000);
            $("#sorts8").val("")

        }
    }*/
    //取消
    function cancelBtn() {
        parent.layer.closeAll();
    }
    //时间
    var  d = new Date();
    var YMDHMS = d.getFullYear() + "-" +(d.getMonth()+1) + "-" + d.getDate() + " " +
        d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds();
    var start = {
        format: 'YYYY-MM-DD hh:mm:ss',
        minDate: YMDHMS,
        // maxDate: "2018-12-30 12:12"

    };

    $('#logmin').jeDate(start);
        // $('#logmax').jeDate(end);
    /*角色编辑*/
    function roles_edit(title,url,id,w,h){
        layer_show(title,url,w,h);
    }
    $.validator.addMethod("titleCheck", function(value, element) {
        var tel = /^.{1,40}$/;
        return this.optional(element) || (tel.test(value));
    }, "输入有误");
    $.validator.addMethod("colorCheck", function(value, element) {
        var tel = /^#([0-9a-fA-F]{6}|[0-9a-fA-F]{3})$/;
        return this.optional(element) || (tel.test(value));
    }, "请按色值格式输入");
</script>
<style>
    .error{
        color:#ff1b1b;
    }
    label.error {
        width: 75px;
        position: absolute;
        left: 325px;
        top: 1px;
        color: #ef392b;
        font-size: 12px;
    }
    label#logmin-error{
        left:265px;
    }
</style>
</body>
</html>